package org.xfy.base.util;

import cn.hutool.http.HttpUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import sun.net.www.http.HttpClient;
@Configuration
public class SendMsgWebchinese {
    @Value("${SendMsg.username}")
    private String usrname;
    @Value("${SendMsg.key}")
    private String key;

    private static String URL="https://utf8api.smschinese.cn/?Uid=%s&Key=%s&smsMob=%s&smsText=验证码:%s";
    public  void sendSMS(String smsMob,String smsText){
        String format = String.format(URL, usrname, key, smsMob, smsText);
        //String s = HttpUtil.get(format);
    }

}